package com.heima.datasync.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.pojo.ApArticle;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by ZYJ on 2021/6/8 17:28
 */
public interface ApArticleMapper extends BaseMapper<ApArticle> {
    @Select("select aa.* from ap_article aa left join ap_article_config acc on aa.id = acc.article_id " +
            "where acc.is_delete != 1 and acc.is_down != 1 ")
    List<ApArticle> findAllArticles();
}
